package com.wtwd.wtwddevice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.wtwddevice.model.entity.SetBloodOxygenWarning;
import com.wtwd.wtwddevice.model.entity.SetHeartRateWarning;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SetBloodOxygenWarningMapper extends BaseMapper<SetBloodOxygenWarning> {
    SetBloodOxygenWarning selectBloodOxygenWarningByDeviceId(@Param("deviceId") Long deviceId);

    int insertSetBloodOxygenWarning(@Param("setBloodOxygenWarning") SetBloodOxygenWarning setBloodOxygenWarning);

    int updateSetBloodOxygenWarning(@Param("setBloodOxygenWarning") SetBloodOxygenWarning setBloodOxygenWarning);

    SetBloodOxygenWarning selectCommand(@Param("deviceId") Long deviceId, @Param("number") String number);

    int updateState(@Param("deviceId") Long deviceId, @Param("number") String number,@Param("state") Integer state);
}
